package com.qfedu.springmvc02.service;

import com.github.pagehelper.PageInfo;
import com.qfedu.springmvc02.entity.User;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhang
 * @Title: commonValidateAdd
 * @date : 2022/5/7 15:16
 */
public interface UserService {
    PageInfo<User> selectAllUser(Integer pageIndex,Integer pageSize);

    User selectById(Integer id);

    int addUser(User user);

    int update(User user);

    int deleteById(Integer id);

    // 业务层的登录方法
    User login(String name,String password);
}
